// cover some element-ui styles

/* 只需要重写你需要的即可 */
@forward 'element-plus/theme-chalk/src/common/var.scss' with (
  $colors: (
    'primary': (
      'base': #336fff,
    ),
    'success': (
      'base': #00b42a,
    ),
    'warning': (
      'base': #ffbf29,
    ),
    'danger': (
      'base': #ee0909,
    ),
    'error': (
      'base': #ee0909,
    ),
    'info': (
      'base': #909399,
    ),
  ),
);
// 如果你想导入所有样式:
 @use "element-plus/theme-chalk/src/index.scss" as *;

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
}




// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse>div>.el-submenu>.el-submenu__title .el-submenu__icon-arrow {
  display: none;
}

.el-dropdown .el-dropdown-link {
  color: var(--el-color-primary) !important;
}


// 解决表格中图片预览样式层级问题
.el-table .el-table__cell {
  z-index: auto !important;
}

// .el-image-viewer__mask {
//   position: absolute;
//   width: 50%;
//   height: 100%;
//   top: 0;
//   left: 0;
//   opacity: .5;
//   background: #000;
// }

// .el-image-viewer__wrapper {
//   position: fixed;
//   width: 50%;
//   height: 100%;
//     top: 0;
//     right: 0;
//     bottom: 0;
//     left: 0;
// }
.el-dialog__header {
  padding: 0px;
  height: 54px;
  line-height: 54px;
  border-bottom: 1px solid #ebeef5;
  margin-right: 0px;
  // background-color: #f5f7fd;

  span {
    margin-left: 16px;
  }
}

.el-dialog__headerbtn {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0;
  width: 54px;
  height: 54px;
  background: 0 0;
  border: none;
  outline: 0;
  cursor: pointer;
  font-size: 16px
}

.el-dialog__title {
  font-weight: bold;
}

.el-button--default {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;
  padding: 0px 15px !important;
  box-sizing: border-box !important;
  // min-width: 85px;
}

.btn-operate {
  .el-button.is-link {
    min-width: max-content !important;
    margin: 0;
    padding: 0 8px !important;
  }
}

// .el-button--primary {
//   background: -webkit-linear-gradient(to right, #336fff, #00c6ff);  /* Chrome 10-25, Safari 5.1-6 */
//   background: linear-gradient(to right, #336fff, #00c6ff); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
//   border: none !important;
// }

// .el-dialog__header {
//   background: -webkit-linear-gradient(to right, #336fff, #3392ff);  /* Chrome 10-25, Safari 5.1-6 */
//   background: linear-gradient(to right, #336fff, #3392ff); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
//   .el-dialog__title {
//     color: #fff;
//   }
//   .el-dialog__close {
//     color: #fff;
//     font-weight: bold !important;
//   }
//   .el-dialog__headerbtn:hover {
//     .el-dialog__close {
//       color: #fff;
//       font-weight: bold !important;
//     }
//   }
// }